package disease

import (
	v1 "gitcode.com/G-YT/iHealth25/server/api/v1"
	"github.com/gin-gonic/gin"
)

type DiseaseRouter struct {
}

// InitDiseaseRouter 初始化病症分析路由信息
func (s *DiseaseRouter) InitDiseaseRouter(Router *gin.RouterGroup) {
	diseaseRouter := Router.Group("disease")
	historyRouter := Router.Group("history")
	hisPlanRouter := Router.Group("hisPlan") // 健管师端接口
	var diseaseApi = v1.ApiGroupApp.DiseaseApiGroup.DiseaseApi
	{
		diseaseRouter.GET("getBzlxList", diseaseApi.GetDiseaseTypeList)                    // 获取病症类型列表
		diseaseRouter.POST("getBzList", diseaseApi.GetDiseaseList)                         // 获取病症列表
		diseaseRouter.GET("getPhysiqueSolar", diseaseApi.GetPhysiqueSolar)                 // 获取体质节气
		diseaseRouter.GET("getDiseaseRank", diseaseApi.GetDiseaseRank)                     // 获取病症排行【超管】
		diseaseRouter.GET("getScDiseaseRank", diseaseApi.GetScDiseaseRank)                 // 获取病症排行【服务中心】
		diseaseRouter.GET("exportDiseaseRankExcel", diseaseApi.ExportDiseaseRankExcel)     // 导出全部病症排行Excel【超管】
		diseaseRouter.GET("exportScDiseaseRankExcel", diseaseApi.ExportScDiseaseRankExcel) // 导出服务中心病症排行Excel【服务中心】
		diseaseRouter.GET("getDiseaseUserList", diseaseApi.GetDiseaseUserList)             // 获取病症用户列表【超管】
		diseaseRouter.POST("saveReports", diseaseApi.SaveReports)                          // 保存病症报告记录
		diseaseRouter.GET("check", diseaseApi.Check)                                       // 验证是否可看我的方案
		diseaseRouter.GET("getBrain", diseaseApi.GetBrain)                                 // 获取脑波
		diseaseRouter.GET("getSport", diseaseApi.GetSport)                                 // 获取运动
		diseaseRouter.POST("setBrain", diseaseApi.SetBrain)                                // 选中脑波
		diseaseRouter.POST("setSport", diseaseApi.SetSport)                                // 选中运动
		diseaseRouter.POST("setPlanTips", diseaseApi.SetPlanTips)                          // 保存方案提醒
		diseaseRouter.GET("getSchedule", diseaseApi.GetSchedule)                           // 获取进度
		diseaseRouter.GET("createPlanCompleteRecord", diseaseApi.CreatePlanCompleteRecord) // 创建方案完成记录
		diseaseRouter.GET("getUserBasicInfo", diseaseApi.GetUserBasicInfo)                 // 获取用户基本信息
		diseaseRouter.GET("getUserList", diseaseApi.GetUserList)                           // 获取用户列表【服务站】
		diseaseRouter.GET("getAllUserList", diseaseApi.GetAllUserList)                     // 获取全部用户列表【超管】
		diseaseRouter.GET("getUserRecord", diseaseApi.GetUserRecord)                       // 获取对应方案
		diseaseRouter.PUT("setUserRecord", diseaseApi.SetUserRecord)                       // 修改对应方案
		diseaseRouter.GET("getArticle", diseaseApi.GetArticle)                             // 获取全部可选方案
		diseaseRouter.GET("excelUserList", diseaseApi.ExcelUserList)                       // 导出用户列表【超管】
		diseaseRouter.GET("excelScUserList", diseaseApi.ExcelScUserList)                   // 导出用户列表【服务中心】
		diseaseRouter.GET("openVip", diseaseApi.OpenVip)                                   // 开通会员
		diseaseRouter.GET("userHealth", diseaseApi.UserHealth)
		diseaseRouter.GET("setUserPoints", diseaseApi.SetUserPoints)
		diseaseRouter.GET("getHealthData", diseaseApi.GetHealthData)
	}
	{
		historyRouter.POST("saveDiseaseHistory", diseaseApi.SaveDiseaseHistory)      // 保存病史
		historyRouter.GET("getUserDiseaseHistory", diseaseApi.GetUserDiseaseHistory) // 获取用户病史
	}
	{
		hisPlanRouter.GET("getHisPlan", diseaseApi.GetHisPlan)                 // 获取他的方案
		hisPlanRouter.PUT("saveHisPlan", diseaseApi.SaveHisPlan)               // 保存他的方案
		hisPlanRouter.GET("getHisBalancePlan", diseaseApi.GetHisBalancePlan)   // 获取他的平衡方案
		hisPlanRouter.PUT("saveHisBalancePlan", diseaseApi.SaveHisBalancePlan) // 保存他的平衡方案
	}
}
